import request from "./request";
// 第一个弹框的数据
export function Popups() {
  return request({
    url: "home/getFirstClassify",
    method: "GET",
  });
}
// 第三个弹框数据
export function Popups1(id) {
  return request({
    url: `home/getMajor/${id}`,
    method: "GET",
  });
}
// tab切换数据
export function Tab(id) {
  return request({
    url: `home/getSecondClassify/${id}?classify_id=${id}`,
    method: "GET",
  });
}
// 轮播图数据
export function banners(id) {
  return request({
    url: `/home/banner/${id}/4`,
    method: "GET",
  });
}
// 免费直播课
export function mask(id) {
  return request({
    url: `/home/marketingCourse/${id}?classify_id=${id}`,
    method: "GET",
  });
}
// 推荐好课
export function GoodClass(id) {
  return request({
    url: `/home/classifyCourse/${id}?page=1&limit=150&classify_id=${id}`,
    method: "GET",
  });
}
// 详情页数据
export function userInfo(id) {
  return request({
    url: `/courseInfo/basis_id=${id}/st=0?basis_id=${id}&st=0&channel=`,
    method: "GET",
  });
}
// 发送验证码
export function Vervs(data) {
  return request({
    url: `/getsmscode`,
    method: "POST",
    data,
  });
}
// 图形验证码
export function grap() {
  return request({
    url: `/getImgCode`,
    method: "GET",
  });

}
// 登录
export function Logins(data) {
  return request({
    url: `/login`,
    method: "POST",
    data,
  });
  
}